home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 40 / PC Gamer IT CD 40 1-2.iso / ELINK / CLARISHP / _SETUP.1 / HOMEPAGE.exe / 1009 / 159 < prev    next >
Text File  |  1997-02-20  |  5KB  |  150 lines

  1. // -----
  2. // VDL159.txt
  3. // Copyright 1996 Claris
  4. // -----
  5.  
  6.  
  7. // Menu Edit dialog
  8. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  9. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  10. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  11.  
  12. //This section contains all localizable string constants for this VDL program. Be sure to 
  13. //include the backslash character at the end of each line of a multi-line string, except for the last line.
  14. //You may also flatten multiline constants into a single line, if you prefer
  15.  
  16. #define kLit1 "Item List:"
  17. #define kLit2 "Title"
  18. #define kLit3 "&Number of Items Visible:"
  19. #define kLit4 "Allow Multiple Selections"
  20. #define kLit5 "Allow &Multiple Selections"
  21.  
  22.  
  23. //Note: the file name will probably not change, but the name of the "Help" folder
  24. //probably will. Note that the translated name MUST be 8 chars or less.
  25. #define kHelpURL "Help/Popups.htm"
  26. #define kHelpTitle "&Help"
  27.  
  28. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  29. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  30. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  31.  
  32.  
  33.  
  34. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  35. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  36. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  37.  
  38. //This section contains integer constants that are used to format this VDL program.
  39. //These are localizable - they only need to be changed if the localized strings 
  40. //are sufficiently longer than the US strings. Localize the strings first, then the constants.
  41.  
  42. //Width of the whole dialog
  43. #define kDialogMainWidth 340
  44.  
  45. //Width of the "Number of Items Visible" text
  46. #define kNumberOfItemsTextWidth 225
  47.  
  48. //Width of the checkbox
  49. #define kAllowMultipleSelsWidth 200
  50.  
  51. //Margins to the left and right of the checkmark icon at the top left of the 
  52. //list
  53. #define kCheckIconLeftMargin 16
  54. #define kCheckIconRightMargin 14
  55.  
  56. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  57. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  58. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  59.  
  60. //No further localizable data past this point
  61.  
  62. /************************** END LOCALIZABLE DATA ***************************************************/
  63. /************************** END LOCALIZABLE DATA ***************************************************/
  64. /************************** END LOCALIZABLE DATA ***************************************************/
  65.  
  66.  
  67. #if Platform_Mac
  68.     #define dlogBack BackColor = {65535, 65535, 65535}
  69.     #define softBack {65535, 65535, 65535}
  70. #else
  71.     #define dlogBack BackColor = Dialog
  72.     #define softBack {25000, 25000, 25000}
  73. #endif
  74.  
  75. #define EH EnabledHelpString =
  76.  
  77. Margin(10, 10, 10, 10, dlogBack) 
  78. VList(Width = kDialogMainWidth)
  79.     {
  80.     Label(kLit1, Single)
  81.         Margin(15,5,15,15)
  82.             VList(Width = UseParent)
  83.                 {
  84.                 HList(Width = UseParent)
  85.                     {
  86.                     Margin(kCheckIconLeftMargin, 2, kCheckIconRightMargin, 0)
  87.                         #if Platform_Mac
  88.                             cicn(2200);
  89.                         #else
  90.                             cicn(2201);
  91.                         #endif
  92.                     StaticText(kLit2);
  93.                     }
  94.             
  95.             //You can use this instead of the three margins below. Delete 1 pixel from the 
  96.             //left of the margin for the cicn above in this case (make it 15, not 16)
  97.             /* Margin(1,1,1,1,BackColor = {0,0,0}) */
  98.         
  99.             #if Platform_Mac
  100.             Margin(0,0,1,1, Width = UseParent, dlogBack )
  101.                 Margin(1,1,1,1, Width = UseParent, BackColor = softBack )
  102.                     Margin(1,1,0,1, Width = UseParent, BackColor = Black )
  103.             #else
  104.             Margin(0,0,1,1, Width = UseParent, BackColor = White )
  105.                 Margin(1,1,1,1, Width = UseParent, BackColor = softBack )
  106.                     Margin(1,1,1,1, Width = UseParent, BackColor = Black )
  107.             #endif
  108.                         VList( Width = UseParent, Height = 180, VScroll,
  109.                                  BackColor = {65535,65535,65535} )
  110.                             {
  111.                             // EditText(items, Width = UseParent, Height = 180, NoSmartQuotes);
  112.                             GenericView("MenuTextView", Width = UseParent);
  113.                             }
  114.                         
  115.                 }
  116.  
  117.     Spacer(Height = 15, Width = 0);
  118.     EditText( visCount, Width = kNumberOfItemsTextWidth, // FilterProc = "MenuVisCount"
  119.                  BackColor = {65535, 65535, 65535},
  120.                  Label = kLit3, NoSmartQuotes, NoSmartEdits);
  121.     Spacer(Height = 5, Width = 0);
  122.     
  123.     #if Platform_Mac
  124.         WidowCheckBox( kLit4, allowMult,
  125.                               Width = kAllowMultipleSelsWidth, Height = 16 );
  126.     #else
  127.         CheckBox( kLit5, allowMult,
  128.                               Width = kAllowMultipleSelsWidth, Height = 16 );
  129.     #endif
  130.         
  131.     Spacer(Height = 10, Width = 0);
  132.     //StandardDialogButtonsHNoReturn;
  133.     HList(Width = UseParent)
  134.         {
  135.         #if Platform_Mac
  136.         PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL)
  137.             {
  138.             Enabled(Draw, 'cicn',14055 );
  139.             Disabled(Draw, 'cicn',14057 ); 
  140.             Tracking(Draw, 'cicn',14056 );
  141.             };
  142.         #else
  143.         PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL);
  144.         #endif
  145.  
  146.         StandardDialogButtonsHEnterOnly;
  147.         }
  148.     }
  149.  
  150.